accessing public, protected, default, private in the same class 



package samplepack;

public class SampleClass {

	public int a = 10;
	protected int b = 11;
	int c = 12;
	private int d = 13;
	
	public static void main(String[] args) {
		SampleClass mc = new SampleClass();
		
		
		System.out.println(mc.a);
        System.out.println(mc.b);
        System.out.println(mc.c);
        System.out.println(mc.d);
	}

}


//SVN Test